package com.example.job_backend.model;

import com.sushengren.easyword.annotation.WordProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ResumeData {
    @WordProperty("姓名")
    private String Name;
    @WordProperty("民族")
    private String Ethnicity;
    @WordProperty("电话")
    private String Phone;
    @WordProperty("邮箱")
    private String Email;
    @WordProperty("住址")
    private String Address;
    @WordProperty("出生年月")
    private String Birth;
    @WordProperty("身高")
    private String Height;
    @WordProperty("政治面貌")
    private String Political;
    @WordProperty("毕业院校")
    private String Graduated;
    @WordProperty("学历")
    private String Education;
    @WordProperty("教育背景")
    private List<educationalBackground> educationalBackgroundList;
    @WordProperty("实习经历")
    private List<internshipExperience> internshipExperienceList;
    @WordProperty("校园经历")
    private List<campusExperience> campusExperienceList;
    @WordProperty("自我评价")
    private String evaluate;

    private Integer templateId;
    private String resumeName;
    private Integer studentId;

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class educationalBackground {
        @WordProperty("教育日期")
        private String startDate;
        @WordProperty("院校")
        private String school;
        @WordProperty("专业")
        private String major;
        @WordProperty("主修课程")
        private String mainClasses;
    }


    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class internshipExperience {
        @WordProperty("实习日期")
        private String startDate;
        @WordProperty("企业")
        private String firm;
        @WordProperty("岗位")
        private String post;
        @WordProperty("主要工作")
        private String mainJob;
    }

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class campusExperience{
        @WordProperty("日期")
        private String startDate;
        @WordProperty("经历")
        private String experience;
        @WordProperty("备注")
        private String remark;
    }
}
